package com.kaiwukj.android.ufamily.mvp.ui.page.home.service;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.kaiwukj.android.ufamily.R;
import com.kaiwukj.android.ufamily.mvp.http.entity.helper.ServiceHistoryEntry;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;

public class ServiceHistoryAdapter extends BaseQuickAdapter<ServiceHistoryEntry, BaseViewHolder> {
    public ServiceHistoryAdapter() {
        super(R.layout.item_service_history_child, new ArrayList<>());
        addChildClickViewIds(R.id.tv_label);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, ServiceHistoryEntry entry) {
        holder.setText(R.id.tv_label, entry.getLabel());
    }
}
